/**
 * Created by 81052 on 2018/4/5.
 */
public class test01 {
    public static void main(String[] args) {
        Score score=new Score();
        try {
            score.In(65);
            score.In(78);
            score.In(89);
            score.In(55);
            score.In(-78);
            score.In(888888);
        }
        catch(InputException e) {
            System.out.println("总分为:"+score.getSumScore());
            System.out.println("计算成绩时出现以下问题:"+e.warnMess());
        }
    }
}
